/* 中医风格医生工作站样式 */
.doctor-container {
  min-height: 100vh;
  background-color: #f9f6f2;
  font-family: 'KaiTi', 'SimSun', serif;
  color: #5c3317;
  /* 添加纸张纹理背景替代虚线 */
  background-image: url('');
}

/* 顶部导航栏 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(to right, #8B4513, #A0522D);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: normal;
  letter-spacing: 2px;
}

.header-actions {
  display: flex;
  gap: 15px;
}

.header-actions button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'KaiTi', 'SimSun', serif;
}

.header-actions button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.chat-btn {
  background: rgba(210, 180, 140, 0.3) !important;
}

.logout-btn {
  background: rgba(205, 92, 92, 0.3) !important;
}

/* 内容区域 */
.content {
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 欢迎区域 */
.welcome-section {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(255, 248, 220, 0.9);
  border-radius: 8px;
  position: relative;
  border: 1px solid #D2B48C;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
}

.welcome-section::before {
  display: none;
}

.welcome-section h1 {
  color: #8B4513;
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: normal;
}

.welcome-section p {
  color: #A0522D;
  font-size: 18px;
}

/* 面板样式 */
.bshf-panel {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
  overflow: hidden;
  border: 1px solid #D2B48C;
}

/* 选项卡样式 */
.tabs {
  display: flex;
  background-color: #F5DEB3;
  border-bottom: 1px solid #D2B48C;
}

.tab {
  padding: 15px 25px;
  cursor: pointer;
  transition: all 0.3s;
  color: #8B4513;
  font-size: 16px;
  position: relative;
  text-align: center;
  flex: 1;
}

.tab:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: #D2B48C;
}

.tab:hover {
  background-color: #F0E68C;
}

.tab.active {
  background-color: #fff;
  font-weight: bold;
  border-bottom: 3px solid #8B4513;
}

.tab .count {
  font-size: 14px;
  color: #A0522D;
  margin-left: 5px;
}

/* 列表样式 */
.bshf-list {
  padding: 20px;
  min-height: 400px;
}

.loading, .empty-list {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  color: #A0522D;
  font-size: 18px;
}

.bshf-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.bshf-item {
  background-color: #FFF8DC;
  border: 1px solid #DEB887;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.bshf-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.15);
}

.bshf-info {
  flex: 1;
}

.bshf-info p {
  margin: 8px 0;
  color: #5c3317;
}

.bshf-info p strong {
  color: #8B4513;
  margin-right: 5px;
}

.bshf-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
}

.action-btn {
  background-color: #8B4513;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'KaiTi', 'SimSun', serif;
}

.action-btn:hover {
  background-color: #A0522D;
  transform: translateY(-2px);
}

/* 弹窗样式 */
:deep(.el-dialog) {
  border-radius: 8px;
  overflow: hidden;
}

:deep(.el-dialog__header) {
  background-color: #8B4513;
  color: white;
  padding: 15px 20px;
}

:deep(.el-dialog__title) {
  color: white;
  font-family: 'KaiTi', 'SimSun', serif;
  font-size: 18px;
}

:deep(.el-dialog__body) {
  padding: 30px;
  background-color: #f9f6f2;
}

:deep(.el-dialog__footer) {
  padding: 15px 20px;
  background-color: #f9f6f2;
  border-top: 1px solid #D2B48C;
}

/* 图表容器 */
.chart-container, .trend-container {
  height: 500px;
  display: flex;
  flex-direction: column;
}

.radar-chart, .trend-chart {
  height: 100%;
  width: 100%;
}

/* 回访表单 */
.followup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-item label {
  color: #8B4513;
  font-weight: bold;
}

/* 按钮样式 */
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.cancel-btn, .confirm-btn, .complete-btn {
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'KaiTi', 'SimSun', serif;
  border: none;
}

.cancel-btn {
  background-color: #D3D3D3;
  color: #333;
}

.confirm-btn, .complete-btn {
  background-color: #8B4513;
  color: white;
}

.cancel-btn:hover, .confirm-btn:hover, .complete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 答案变化分析 */
.answer-changes {
  margin-top: 30px;
  background-color: #FFF8DC;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #DEB887;
}

.answer-changes h3 {
  color: #8B4513;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 1px solid #DEB887;
  padding-bottom: 10px;
}

.no-changes {
  color: #A0522D;
  text-align: center;
  padding: 20px;
}

.changes-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.change-item {
  background-color: white;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(139, 69, 19, 0.1);
}

.question {
  color: #8B4513;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
}

.answers {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.previous, .latest {
  margin: 0;
  color: #5c3317;
}

.previous span, .latest span {
  font-weight: bold;
  color: #8B4513;
}

/* 医生选择 */
.doctor-selection {
  padding: 10px;
}

.doctor-item {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.3s;
}

.doctor-item:hover {
  background-color: #FFF8DC;
}

.doctor-info {
  margin-left: 10px;
}

.doctor-name {
  font-weight: bold;
  color: #8B4513;
  font-size: 16px;
}

.doctor-title, .doctor-department {
  color: #A0522D;
  font-size: 14px;
  margin-top: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  
  .content {
    padding: 15px;
  }
  
  .bshf-items {
    grid-template-columns: 1fr;
  }
  
  .tab {
    padding: 10px;
    font-size: 14px;
  }
  
  .answers {
    flex-direction: column;
  }
}